import request from '@/request/request'

//查看文章列表
export const GetListServer = (searchFrom) => {
    const params = new URLSearchParams()
    for (let key in searchFrom) {
        params.append(key, searchFrom[key])
    }
    return request.get('/lookFilelist',{params:params})
}
//删除文件
export const DeleteFileServer=(url)=>{
    return request.delete("/deleteFile",{params:url})
}
//预览文件
export const PreView = (url) => {
    return request.get('/preView',{params:url},{responseType:'blob'})
}